package com.kaifamiao.time;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDateTimeInstance {

    public static void main(String[] args) {

        LocalDateTime datetime = LocalDateTime.now();
        System.out.println( datetime );

        datetime = LocalDateTime.of( 1999 , 11 , 20, 6 , 30 , 7 , 0 ) ;
        System.out.println( datetime );

        datetime = LocalDateTime.of( LocalDate.of(2003,5,6), LocalTime.of(12,12,12) );
        System.out.println( datetime );

    }

}
